package cz.edukomplex.kosilka.client.content.harmonogram;

import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;

/**
 * 
 * @author Radovan Dvorsky
 * 
 * Predstavuje vzhlad bunky v CellList
 *
 */
public class HarmonogramCell extends AbstractCell<HarmonogramCellListRow> {

	@Override
	public void render(HarmonogramCellListRow value, Object key,
			SafeHtmlBuilder sb) {
		if (value == null) {
			return;
		}	
		
		sb.appendHtmlConstant("<table>");
		sb.appendHtmlConstant("<tr><td><strong>"); 
		sb.appendEscaped(value.harmonogramName);
		sb.appendHtmlConstant("</strong></td></tr>");
		/*
		sb.appendHtmlConstant("<tr><td>");
		sb.appendEscaped(value.commissionName);
		sb.appendHtmlConstant("</td></tr>");
		*/		
		sb.appendHtmlConstant("<tr><td><i>");
		sb.appendEscaped(value.studyFieldName);
		sb.appendHtmlConstant("</i></td></tr>");		
		sb.appendHtmlConstant("</table>");
	}

}
